package cn.edu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * @author Mr.ma
 * @since 2022/11/17 14:37
 **/
@Data
@TableName("tb_emp")
@ApiModel(value = "Emp", description = "职员对象")
public class Emp {
    @TableId
    @ApiModelProperty("主键")
    private Integer id;
    @ApiModelProperty("职员姓名")
    private String name;
    @ApiModelProperty("职员年龄")
    private Integer age;
    @ApiModelProperty("职员岗位")
    private String job;
    @ApiModelProperty("职员薪水")
    private Integer salary;
    @TableField("entryDate")
    @ApiModelProperty("入职时间")
    private LocalDate entryDate;
    @TableField("managerId")
    @ApiModelProperty("领导编号")
    private Integer managerId;
    @TableField("dept_id")
    @ApiModelProperty("部门编号")
    private Integer deptId;
    @TableField("headImg")
    @ApiModelProperty("职员头像")
    private String headImg;
}
